﻿using System;
using Game;
namespace Mekiasm
{
    public class MoreCanvasWidget : CanvasWidget
    {
        public Action Action;

        public MoreCanvasWidget() : base()
        {

        }
        public override void Update()
        {
            if (Input.Click.HasValue && (HitTest(Input.Click.Value.Start) && HitTest(Input.Click.Value.End)))
                Action?.Invoke();
        }
    }
}
